﻿<%@ Assembly Name="Havivi.SharePointVideoPlayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=87a631227aaa0363" %>
<%@ Page Language="C#" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Havivi.SharePointVideoPlayer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
 
 protected void Page_Load(object sender, EventArgs e)
    {                
            string listIDQS = Request.QueryString["listID"].Replace("{", "").Replace("}", "");
            Guid listID = new Guid(listIDQS);
            SPList list = SPContext.Current.Web.Lists[listID];
            int itemID = int.Parse(Request.QueryString["video"]);
            SPListItem item = list.GetItemById(itemID);            
            SVP svp = new SVP();
            svp.FLVBestand = SPContext.Current.Web.Url + "/" + item.File.ToString();
            this.Controls.Add(svp);
            this.Controls.Add(new LiteralControl("<center><font style=\"color:White;font-family:Arial ;font-size:9pt;\">" + item["Title"] + "</font></center>"));
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>SharePoint Video Player - by Alon Havivi</title>
</head>
<body style="margin-left:0px;margin-top:0px;background-color: Black;color:White;font-family:Arial ;font-size:9pt;">
    <form id="form1" runat="server">     
    </form>
</body>
</html>
